/**
 * 
 */
package org.statewalker.parser.wiki.tokenizer.block;

import org.statewalker.parser.wiki.grammar.WikiBlockDict;
import org.statewalker.tokenizer.CharStream;
import org.statewalker.tokenizer.StreamToken;

public class ParagraphTokenizer extends EmptyLineTokenizer {

    public ParagraphTokenizer() {
        this(WikiBlockDict.P);
    }

    public ParagraphTokenizer(String key) {
        super(key);
    }

    @Override
    public StreamToken read(CharStream stream) {
        if (stream.getPointer().column > 0)
            return null;
        StreamToken result = super.read(stream);
        return result;
    }
}